Base URL
https://fakeapi.in/api/usersAPI Endpoints
GET
/api/usersGet all users
Parameters
page(number)limit(number)GET
/api/users/1Get user by ID
Parameters
id(number)POST
/api/usersCreate new user
Parameters
name(string)email(string)avatar(string)Request Body
{
"name": "John Doe",
"email": "john@example.com",
"username": "john@123",
"phone":"9798517945","website",
"address":"123 Main St, City, Country",
"company":"Example Corp",
"jobTitle": "Software Engineer",
"age": 30,
"gender": "male",
"createdAt": "2024-01-15T10:30:00Z",
}PUT
/api/users/1Update user
Parameters
id(number)Request Body
{
"name": "John Doe",
"phone":"9798517945","website",
"address":"123 Main St, City, Country",
"company":"Example Corp",
"jobTitle": "Software Engineer",
"age": 30,
"gender": "male",
}DELETE
/api/users/1Delete user
Parameters
id(number)Example Usage
// Get all users
fetch('https://fakeapi.in/api/users')
.then(response => response.json())
.then(users => console.log(users));
// Create a new user
fetch('https://fakeapi.in/api/users', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
},
body: JSON.stringify({
name: 'John Doe',
email: 'john@example.com'
})
})
.then(response => response.json())
.then(user => console.log(user));Example Response
{
"name": "John Doe",
"email": "john@example.com",
"username": "john@123",
"phone":"9798517945","website",
"address":"123 Main St, City, Country",
"company":"Example Corp",
"jobTitle": "Software Engineer",
"age": 30,
"gender": "male",
"createdAt": "2024-01-15T10:30:00Z",
}Quick Actions
API Status
StatusOperational
Rate Limit1000 requests/hour
Response FormatJSON
